package com.example.jucdemo.priorityThread.pac1;

/**
 * @Author by KoVaVo
 * @Date 2023-04-29 21:27
 * @Desc: 线程的优先级
 * 线程有10个级别的优先级： 1 ~ 10
 */
public class demo1 extends Thread{
    @Override
    public void run() {
        System.out.println("dmeo1 run priority = " + this.getPriority());
        demo2 d = new demo2();
        d.start();
    }
}
